package com.mesnac.gof.pattern.stategy;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.List;

public class TestCase {

	public static void main(String args[]) {
		int coin = 5;
		List ad = new ArrayList();
		Context a = new Context(new ZeroState());
		InputStreamReader stdin = new InputStreamReader(System.in);
		BufferedReader buffin = new BufferedReader(stdin);
		while (true) {
			try {
				String str = buffin.readLine();
				coin = Integer.parseInt(str);
				switch (coin) {
				case 5: {
					a.addFive();
					System.out.println(a.s);
					break;
				}
				case 10: {
					a.addTen();
					System.out.println(a.s);
					break;
				}
				case 25: {
					a.addTwen();
					System.out.println(a.s);
					break;
				}
				default:
					return;
					

				}
			} catch (Exception e) {

			}
		}

	}
}
